package com.diors.game.engine.arpg.skill.find;

import java.util.ArrayList;
import java.util.Collection;

import com.diors.game.engine.arpg.object.AbstractObject;

/**
 * 技能目标Model
 * @author	darren.ouyang <ouyang.darren@gmail.com>
 * @date	2013年11月28日
 * @version 1.0
 * @copyright Copyright (c) 2013, darren.ouyang
 */
public abstract class AbstractSkillTarget 
{
	
	public Collection<AbstractObject> findTarget(FindTarget ft)
	{
		Collection<AbstractObject> targets = new ArrayList<AbstractObject>();
		findTargetImpl(ft, targets);
		return targets;
	}
	
	protected abstract void findTargetImpl (FindTarget ft, Collection<AbstractObject> targets);
	
}
